import redis.clients.jedis.Jedis;

import java.io.IOException;
import java.net.Socket;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.TimeUnit;

/**
 * @Classname JedisTest
 * @Description
 * @Date 2020-09-03 09:48
 * @Created by myc
 */
public class JedisTest {
    public static void main(String[] args) throws IOException {
//        Jedis jedis = new Jedis("localhost",8090);
//        jedis.auth("zaopiao123");
//        jedis.select(10);
//        Set<String> set= jedis.keys("*");
//        Iterator it =set.iterator();
//        while (it.hasNext()){
//            System.out.println(it.next());
//        }

//        jedis.set("name","myc");
//        System.out.println(jedis.get("name"));
//        jedis.del("name");

        Socket socket = new Socket("localhost",8090);
        socket.getOutputStream().write(("fasdsfsdf" +
                "asdfasdfasfasdfasdfasf").getBytes());
    }
}
